package com.hn.project.rqinspect.mapper;

import com.hn.framework.web.dao.BaseMapper;
import com.hn.project.rqinspect.domain.database.BranchCheckpoint;
import com.hn.project.rqinspect.domain.dto.BranchCheckpointDto;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface BranchCheckpointMapper extends BaseMapper<BranchCheckpoint> {

    /**
     * 未检查的检查点列表
     *
     * @param partTypeId
     * @param taskRecordId
     * @param containIds
     * @param noContainIds
     * @return
     */
    List<BranchCheckpointDto> listNoCheckBranchCheckpoint(@Param("partTypeId") Integer partTypeId,
                                                          @Param("branchId") Integer branchId,
                                                          @Param("containIds") List<Integer> containIds,
                                                          @Param("noContainIds") List<Integer> noContainIds);

    /**
     * 检查点列表
     *
     * @param branchPartId
     * @param taskRecordId
     * @return
     */
    List<BranchCheckpoint> listBranchCheckpoint(@Param("branchPartId") Integer branchPartId, @Param("taskRecordId") Integer taskRecordId);

    String getAddressByCheckpointIds(String[] list);
}
